package com.lc.user.express.httpserver;

import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2016/4/29.通知后台自动选择司机
 */
@HttpInlet(Net.GET_AUTO_SELECT_DRIVER)
public class GetAutoSelectDriver extends ZJDBAsyGet<Object> {
    public String userid,orderid;

    public GetAutoSelectDriver(String userid,String orderid,AsyCallBack listener) {
        super(listener);
        this.userid = userid;
        this.orderid = orderid;
    }

    @Override
    protected Object parser(JSONObject object) {
        if (object.optInt("message") == 1) {
            return "1";
        }
        return null;
    }
}
